#include <gen_slab_map.hpp>
Public Member Functions | |
GenSlabMap (boost::shared_ptr< _network > network) | |
~GenSlabMap () | |
boost::shared_ptr < gridpack::math::Matrix > | mapToMatrix (void) |
gridpack::math::Matrix * | intMapToMatrix (void) |
void | mapToMatrix (gridpack::math::Matrix &matrix) |
void | mapToMatrix (boost::shared_ptr< gridpack::math::Matrix > &matrix) |
void | mapToNetwork (const gridpack::math::Matrix &matrix) |
void | mapToNetwork (boost::shared_ptr< gridpack::math::Matrix > &matrix) |
gridpack::mapper::GenSlabMap< _network >::GenSlabMap | ( | boost::shared_ptr< _network > | network | ) |
gridpack::mapper::GenSlabMap< _network >::~GenSlabMap | ( | ) |
gridpack::math::Matrix* gridpack::mapper::GenSlabMap< _network >::intMapToMatrix | ( | void | ) |
Generate dense matrix from current component state on network and return a conventional pointer to it. Used for Fortran interface.
References gridpack::math::MatrixT< T, I >::createDense(), and gridpack::math::Dense.
void gridpack::mapper::GenSlabMap< _network >::mapToMatrix | ( | boost::shared_ptr< gridpack::math::Matrix > & | matrix | ) |
Reset existing matrix from current component state on network
matrix | existing vector (should be generated from same mapper) |
References gridpack::mapper::GenSlabMap< _network >::mapToMatrix().
void gridpack::mapper::GenSlabMap< _network >::mapToMatrix | ( | gridpack::math::Matrix & | matrix | ) |
Reset existing matrix from current component state on network
matrix | existing matrix (should be generated from same mapper) |
References gridpack::math::BaseMatrixInterface< T, I >::ready(), and gridpack::math::BaseMatrixInterface< T, I >::zero().
boost::shared_ptr<gridpack::math::Matrix> gridpack::mapper::GenSlabMap< _network >::mapToMatrix | ( | void | ) |
Generate a dense matrix from current component state on network
References gridpack::math::MatrixT< T, I >::createDense(), and gridpack::math::Dense.
void gridpack::mapper::GenSlabMap< _network >::mapToNetwork | ( | boost::shared_ptr< gridpack::math::Matrix > & | matrix | ) |
Push data from matrix onto buses and branches. Matrix must be created with the mapToMatrix method using the same GenSlabMap
matrix | matrix containing data to be pushed to network |
References gridpack::mapper::GenSlabMap< _network >::mapToNetwork().
void gridpack::mapper::GenSlabMap< _network >::mapToNetwork | ( | const gridpack::math::Matrix & | matrix | ) |
Push data from matrix onto buses and branches. Matrix must be created with the mapToMatrix method using the same GenSlabMap
matrix | matrix containing data to be pushed to network |
References gridpack::math::BaseMatrixInterface< T, I >::getElement(), and gridpack::math::BaseMatrixInterface< T, I >::getRowBlock().